package com.example.cp.mvvm.base2;

import androidx.lifecycle.ViewModel;

import com.example.cp.mvvm.base.BaseRepo;

public abstract class BaseViewModel <Repo extends BaseRepo> extends ViewModel {
    protected Repo repo;

    public BaseViewModel() {
        repo = createRepo();
    }
    public abstract Repo createRepo();
}
